package com.runrunfast.fxj.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * <p>
 * 后台用户添加
 * </p>
 *
 * @author 陈胤训
 * @since 2019-03-12
 */
@Data
@Builder
@AllArgsConstructor
@ApiModel(value="SysUser",description="用户对象user",parent = ResultVo.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysUserVo implements Serializable {

    private static final long serialVersionUID = 11111251L;


    /**
     * 后台用户id
     */
    @ApiModelProperty(value="后台用户id",name="sysUserId",example = "0")
    private Integer sysUserId;

    /**
     * 手机号码
     */
    @ApiModelProperty(value="手机号码",name="phone")
    private String phone;



    /**
     * 用户名称
     */
    @ApiModelProperty(value="用户名称")
    private String userName;

    /**
     * 邮箱
     */
    @ApiModelProperty(value="邮箱")
    private String mail;

    /**
     * 余额 最大20位数  以分为单位
     */

    @ApiModelProperty(value="余额",hidden = true)
    private BigDecimal balance;

    /**
     * 用户状态 0正常 1 禁用  -1 删除
     */
    @ApiModelProperty(value="用户状态")
    private String status;

    /**
     * 创建时间
     */

    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间 -- 修改时自动更新
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;




}
